package com.fedming.bottomnavigationdemo.Fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.fedming.bottomnavigationdemo.R;

public class WeatherFragment extends BaseLazyFragment{

    @Nullable
    @Override  //
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        View view = inflater.inflate(R.layout.weather_fragment,container,false);
        mIsprepared = true;
        lazyLoad();
        Log.e(TAG,"onCreateView");
        return view;

    }
    public WeatherFragment(){
        TAG = "WeatherFragment";
    }

    @Override
    protected void lazyLoad() {
        if (!mIsprepared || !mIsVisible || mHasLoadedOnce) {
            return;
        }
        mHasLoadedOnce = true;

    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }
}
